package com.teamone.etl.dataruleengine.controller;


import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.api.R;
import com.teamone.etl.dataruleengine.service.RuleTypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (RuleType)表控制层
 *
 * @author makejava
 * @since 2021-01-12 21:04:41
 */
@RestController
@RequestMapping("ruleType")
public class RuleTypeController extends ApiController {
    /**
     * 服务对象
     */
    @Resource
    private RuleTypeService ruleTypeService;

    /**
     *  获取规则类型
     * @return
     */
    @GetMapping("/typeList")
    public R typeList(){
        return success(ruleTypeService.typeList());
    }

}